package com.youdianstar.app.common


/**
 * File: ConstantEx
 * Author: 82149 Create: 2021/9/18 10:47
 * Changes (from 2021/9/18)
 * --------------------------------------------------
 * description:
 * ---------------------------------------------------
 *
 */

//正式 URL (域名会更改-需要更换本地证书cer文件)
const val HTTP_BRS_URL = "https://s.youdianstar.com"
//测试
// const val HTTP_BRS_URL = "https://dev.youdian.asia"

//Stripe key(已确认)
const val STRIPE_KEY = "pk_live_51PGRn4P4gVN5wCcsSTPoGlUy9SvOeVZiXfSKH0oJVVPRIxrkrriDRSuNOz0nkj8SoIGTt95tGcRXCkR3yjXlW3By00D6FeJbYm"
//const val STRIPE_KEY = "pk_test_51PGRn4P4gVN5wCcsdfZEIq0bjEGI3uzjujbNplaE2WLs9bQdSt2PBd0OG3uNYmWbOw0Hjt76HhEPTv2Df594F1Tb00u6dGf72o" //test


//事件代码 选择图片
const val PHOTO_CAMERA = 20
const val PHOTO_ALBUM = 21
//默认分页大小
const val PAGE_SIZE = 20

//时间 OTP
const val COUNTDOWN_TIME = 60L
const val COUNT_TIME_KEY = "downCount_time"
const val REQUEST_TIME = "request_time"

//最大订单计时 7天 = 60*60*24*7
const val MAX_COUNT_ORDER = 604800L
const val MIN_COUNT_LIMIT = 20000L

const val TERM_URL = "https://term.com"
const val PRIVACY_URL = "https://privacy.com"

object Topic{
    const val TOPIC_GLOBAL = "YoudianstarApp"
    const val TOPIC_TOKEN = "YoudianstarApp_"

    const val MSGTYPE = "msgType"
    const val MSG = "msg"
    const val BRANCH = "branchId"
    const val ADDRESS = "address"
    const val DATA = "data"
    const val EVENT_ORDER_PAY = "3"
    const val EVENT_LOSS_PAY = "6"
    const val EVENT_AUTO_PAY = "9"
    const val EVENT_POWER_RP = "14"
}

object HttpCode{
    //Token
    const val CODE_TOKEN_OUT = 10401
    //验证码错误
    const val CODE_OTP_ERROR = 21004
    const val CODE_OTP_UNABLE = 21011
    const val CODE_OTP_OVER = 21012
}

/**
 * 主题配置
 * --本地编号,不与接口对应
 */
object ConfigTheme{
    const val DEFAULT :Int = 1
}


object Extra {
    const val IT_ID = "id"
    const val IT_MSG = "msg"
    const val IT_DATA = "data"
    const val IT_RESULT = "result"
    const val IT_SNO = "sno"
    const val IT_TYPE = "type"
    const val IT_CODE = "code"
    const val IT_DATE = "date"
    const val IT_LAT = "lat"
    const val IT_LNG = "lng"
    const val IT_DISTANCE = "distance"
    const val IT_ORDER = "order"
    const val IT_ORDERNO = "orderNo"
    const val IT_NOTIFY = "notify"
    const val IT_MONEY = "money"
    const val IT_AMOUNT = "amount"
    const val IT_PREAMOUNT = "preAmount"
    const val IT_REASON = "reason"
    const val IT_COUPON = "coupon"
    const val IT_CHARGING = "charging"
    const val IT_LANGUAGE = "language"
    const val IT_Link = "link"
}

object ConfigKey{
    const val FILE_HOST = "file-host"

    const val INVITE_LINK = "invitation"
    const val PHONE = "hotline"
    const val EMAIL = "email"
    const val WhatsApp = "whatsapp"
    const val WechatQrLink = "weChant-qr-code"

    const val LOSS_PENALTY = "penalty-amount"
    const val DEPOSIT = "deposit-amount"
    const val PB_PRICE = "power-bank-price"

    const val CONFIG_POLICY_URL = "privacy-policy"
    const val CONFIG_TERMS_URL = "terms-of-use"
    const val CONFIG_DEPOSIT_URL = "deposit-policy"
    const val CONFIG_AUTHORIZA_URL = "pre-authorization-policy"
    //货币
    const val CURRENCY = "currency"

}

object Language {
    const val CONFIGLANGUAGE = "Language"
    const val EN = "en"
    const val NL = "nl"
    const val DE = "de"
    const val IT = "it"
    const val FR = "fr"
    const val RU = "ru"
    const val ES = "es"
    const val PT = "pt"
    const val ZH = "zh"
    const val VI = "vi"
}

object DataCode{
    //指纹固定 加密数据
    const val TOUCH_ID_KEY = "touch_secret"

    //EventBus 事件
    const val TOKEN_OUT = 12
    const val ORDER_FINISH = 15
    const val PUSH_EVENT = 17
    const val PUSH_UPDATE = 19
    const val CLOSE_DRAWER = 9

    //订单状态：0-初始化 1-租借中 2-待支付 3-已完成 4-已取消 5-调查中 6-已退款 7-已报失 8-购买充电宝
    const val STATE_INIT = 0
    const val STATE_RENTING = 1
    const val STATE_UNPAID = 2
    const val STATE_COMPLETE =3
    const val STATE_CANCEL = 4
    const val STATE_PROCESS = 5
    const val STATE_REFUND = 6
    const val STATE_REPORT_LOSS = 7
    const val STATE_PURCHASE_PB = 8

    //支付方式:-1:钱包 0-已绑定卡 1-新卡支付 2-亲情圈 3-Apple 4-google 5-paypal 6-weChat 7-aliPay
    const val Type_Wallet = -1
    const val Type_Card = 0
    const val Type_NewCard = 1
    const val Type_Family = 2
    const val Type_Apple = 3
    const val Type_Google = 4
    const val Type_Paypal = 5
    const val Type_Wechat = 6
    const val Type_Alipay = 7

    //支付状态: 0-未支付 1-已支付 2-免费 3-部分退款 4-全部退款
    const val State_UnPaid = 0
    const val State_Paid = 1
    const val State_Free = 2
    const val State_RefundPart = 3
    const val State_RefundAll = 4

    //流水类型：1-租借 2-租金退款 3-会员 4-会员退款 5-押金 6-押金退款 7-罚金 8-罚金退款 9-添加卡 10-添加卡退款 11-优惠券 12-优惠券退款,
    // 13-预扣款补交 14-预扣款补交退款
    const val BisType_Rent = 1
    const val BisType_Rent_Refund = 2
    const val BisType_Vip = 3
    const val BisType_Vip_Rf = 4
    const val BisType_Deposit = 5
    const val BisType_Deposit_Rf= 6
    const val BisType_Penalty = 7
    const val BisType_Penalty_Rf = 8
    const val BisType_Coupon = 11
    const val BisType_Coupon_Rf = 12
    const val BisType_Charging = 19
    const val BisType_Charging_Rf = 20
}


object BisType{
    //记录各种业务场景类型
    const val Scan_Rent = 0
    const val Scan_Report = 1
    const val Scan_ChargingCard = 2

    //1 充电宝不弹出 2 充电宝归还不结束
    const val Report_RentFailed = 1
    const val Report_ReturnFailed = 2
    const val Report_OrderFault = 3
    //Feedback report
    const val Report_Feedback = 4

    //支付 业务类型:1-租借 5-押金 7-报失 9-添加卡 11-优惠券 13-购买 15-置换 16-预付款 17-预付款 19-充电卡
    const val Bis_Rent = 1
    const val Bis_Deposit = 5
    const val Bis_Loss = 7
    const val Bis_Add = 9
    const val Bis_Coupon = 11
    const val Bis_ChargingCard = 19

    const val Bis_PreAuth = 16
    const val Bis_Prepayment = 17
}